package com.socket.server;

public class Constants {

	public static final String PORT = "8000";
	public static final String IP = "192.168.191.1";
	public static final String FILE_DIR = "d:\\";

	interface Action {
		// 客户
		public static final int SEND_HEAD_INFO = 1;
		public static final int RECEIVE_FILE_START_OFF_NEED = 6;
		public static final int SEND_FILE_HEAD_INFO = 7;
		public static final int RECEIVE_FILE_HEAD_INFO_BACK = 10;
		public static final int SEND_FILE = 11;

		// 服务
		public static final int RECEIVE_HEAD_INFO = 2;
		public static final int SEND_FILE_NEED = 5;
		public static final int RECEIVE_FILE_HEAD_INFO = 8;
		public static final int SEND_FILE_HEAD_INFO_BACK = 9;
		public static final int RECEIVE_FILE = 12;

	}

	interface STATUS {
		public static final String STATUS_OK = "ok";
		public static final String STATUS_ERROR = "error";

	}

	interface MapKey {
		public static final String STATUS = "status";
		public static final String ACTION = "action";
		public static final String FILE_LENGTH = "fileLength";
		public static final String FILE_NAME = "fileName";
		public static final String START_OFF = "startOff";
		public static final String SPLETED_FILE_LENGTH = "splitedFileLength";
		public static final String SPLETED_FILE_BYTES = "splitedFileBytes";
		public static final String IS_END = "isEnd";
	}
}
